/*
** my_aff_combn.c for my_aff_combn in /home/goupil_r//afs/local
** 
** Made by robin goupil
** Login   <goupil_r@epitech.net>
** 
** Started on  Wed Oct  3 18:19:19 2012 robin goupil
** Last update Wed Oct  3 18:35:49 2012 robin goupil
*/

int	my_aff_combn(int n)
{
  int	i;
  int	n_mem;
  int	cnt;

  i = 0;
  n_mem = n;
  cnt = 0;

  while (cnt < 1000)
    {
      while (n > 0)
	{
	  my_putchar(i + 48);
	  i = i + 1;
	  n = n - 1;
	}
      my_putchar(',');
      my_putchar(' ');
      n = n_mem;
    }
}
